

# coding=utf-8
import sys
import time
import requests
import pandas as pd
import datetime

headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36"
}
url = 'https://j.i8tq.com/weather2020/search/city.js'

response = requests.get(url, headers=headers)  # 生成一个response对象
print("状态码:" + str(response.status_code))  # 打印状态码
if response.status_code != 200:
   print('error')
print(response.text)